package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.constant.GetMoneyReport;
import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface MemberDao {
    public List<Member> findAll();
    public Page<Member> selectByCondition(String queryString);
    public void add(Member member);
    public void deleteById(Integer id);
    public Member findById(Integer id);
    public Member findByTelephone(String telephone);
    public void edit(Member member);

    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();

    Integer findMemberCountByOne();

    Integer findMemberCountByTwo();

    Integer findMemberCountByThr();

    Integer findMemberCountByFou();

    Integer findMemberCountByFiv();

    Integer findMemberCountBySix();

    ArrayList<GetMoneyReport> getMoney(@Param("value1") String oneDate, @Param("value2")  String twoDate);

}
